<?php
return array(
	'name' => "android",
	'defaultController'=>'Android',
	'sourceLanguage'=>'en',
	'language'=>'ru',
	'params'=>array(
		'login'=>isset($_REQUEST['login']) ? $_REQUEST['login']: '', 
		'password'=>isset($_REQUEST['login']) ? $_REQUEST['password']: '', 
	),
	'preload'=>array('log'),
	'import'=>array('application.models.*'),
	'components'=>array(
		'assetManager'=> array(
			'linkAssets'=>true,
		),
		'db'=>array(
			'class'=>'CDbConnection',
			'connectionString'=>'mysql:host='._config::get_attr(CLASSIFIER_HOST_ID, 'host').';port='._config::get_attr(CLASSIFIER_HOST_ID, 'mysql_port').';dbname='.MYSQL_SHOPBILLING_DB,
			'username'=>_config::get_attr(CLASSIFIER_HOST_ID, 'user'),
			'password'=>_config::get_attr(CLASSIFIER_HOST_ID, 'password'),
			'emulatePrepare'=>true,
			'charset'=>'utf8',
		),

        'db_ctypes'=>array(
			'class'=>'CDbConnection',
			'connectionString'=>'mysql:host='._config::get_attr(1, 'host').';port='._config::get_attr(1, 'mysql_port').';dbname=classifier',
			'username'=>_config::get_attr(1, 'user'),
			'password'=>_config::get_attr(1, 'password'),
			'emulatePrepare'=>true,
			'charset'=>'utf8',
		),

		'urlManager'=>array(
			'urlFormat'=>'path',
		),
	),
);
?>